import { Module } from '@nestjs/common';
import { AutoController } from './auth.controller';
import { PassportModule } from '@nestjs/passport';
import { LocalStrategy } from './local.strategy'
import { JwtModule } from '@nestjs/jwt'
import { JwtStrategy } from './jwt.strategy';
import { DbModule } from '@lib/db';

@Module({
  imports: [
    DbModule,
    PassportModule,
    JwtModule.register({
      secret: '123456aa'
    })
  ],
  exports: [
    PassportModule,
    JwtModule.register({
      secret: '123456aa'
    })
  ],
  controllers: [AutoController],
  providers: [LocalStrategy, JwtStrategy]
})
export class AuthModule {}
